﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace BE.Web.Betfair.Interface
{
    /// <summary>
    /// BEtfair Products ( Connection Type)
    /// </summary>
    /// <remarks>Product with wid 82 stands for free access API</remarks>
    [DebuggerDisplay("{Id} - {Caption}")]
    public sealed class BetfairProduct
    {
        /// <summary>
        /// Id of the Product
        /// </summary>
        public int Id { get; private set; }


        /// <summary>
        /// DisplayName of the Product
        /// </summary>
        public string Caption { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="BetfairProduct"/> class.
        /// </summary>
        /// <param name="id">The id of the betfair API product.</param>
        /// <param name="caption">The caption for the product.</param>
        private BetfairProduct(int id, string caption)
        {
            this.Id = id;
            this.Caption = caption;
        }


        /// <summary>
        /// Returns an instance representing the Free Bet fair API
        /// </summary>
        /// <value>The free.</value>
        public static BetfairProduct Free
        {
            get
            {
                return new BetfairProduct(82, "Free");
            }
        }
    }
}
